package com.group9.nepmserver.controller;

import com.group9.nepmserver.pojo.Admins;
import com.group9.nepmserver.service.IAdminsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admins")
public class AdminsController {
    @Autowired
    private IAdminsService adminsService;

    @RequestMapping("/getAdminsByCodeByPass")
    public Admins getAdminsByCodeByPass(@RequestBody Admins admins) {
        return adminsService.getAdminsByCodeByPass(admins);
    }
}
